package org.test;

import java.util.List;
import java.util.Map;

import org.nokatag.dbgrid.OnDBGridDataLoadInterface;

public class OnDBGridDataLoad implements OnDBGridDataLoadInterface{
	public String OnDataLoad(String sql, List<Map<String, String>> person) {
		System.out.println("sql:"+sql);//传的原始sql，同dbgrid中的sql属性设置的sql
		for(Map<String,String> m:person){//查询表单传回的查询参数,map中的name为页面查询表单中控件的name，value为对应的查询值
			System.out.println("name:"+m.get("name")+"="+m.get("value"));
		}
		return "{'at':'n9339'}";//返回JSON对象
	}
}
